Skip to content

Update document.adoptedStyleSheets to use newer push method #39711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SimonSiefke
Copy link
Contributor

Description

Updates the document.adoptedStyleSheets documentation to use the newer document.adoptedStyleSheets .push method.

Motivation

Previously, changing document.adoptedStylesheets only worked by assigning a new array. But the spec was updated to allow using the push method, which seems easier.

Additional details

GoogleChrome/web.dev#10412

Related issues and pull requests

@SimonSiefke SimonSiefke requested a review from a team as a code owner May 27, 2025 18:27
@SimonSiefke SimonSiefke requested review from sideshowbarker and removed request for a team May 27, 2025 18:27
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels May 27, 2025
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant